<!DOCTYPE html><html lang="en"><head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>国有企业招聘</title>
  <link rel="stylesheet" href="./styles/common.css">
</head>

<body>
  <script src="http://rsj.beijing.gov.cn/images/rsj_header.js"></script>
  <!-- 公共头部 -->
  <div class="head">
		<div class="content">
			<div class="tit left">国有企业招聘</div>
			<div class="btns">
				<ul>
					<li class="exit"><a href="javascript:void(0)">退出</a></li>
					<li class="qyxxwh usercenter"><a href="javascript:void(0)">就业超市</a></li>
				</ul>
			</div>
		</div>
	</div>

  <!-- 内容区域 -->
  <!-- 申请提示开始 -->
  <div class="message gwxx">
    <div class="content clearfix">
      <div class="zuo left boxShadow">
        <div class="titles concommon">
          <h3> <a href="./index.html">《 返回</a> | 岗位信息编辑 </h3>
        </div>
        <div class="leftcon" id="detailWrap">
          <script type="text/html" id="detailTem">
            <!-- <%if(data.executeResult == 1){%> -->

            <% var _data = data.zpxx[0]%>

          <form class="qyform" name="form_info" msgtype="2" validate="blur">
            <div class="col clearfix">
              <div class="row">
                <input type="text" paramete="dwdjid" value="<%=_data.dwdjid%>" style="display:none;">
                <input type="text" paramete="zpgwid" value="<%=_data.zpgwid%>" style="display:none;">
                <p class="text_l"><span style="color:red;">*</span>岗位分类：</p>
                <p class="text_r">
                  <select id="gwfl" paramete="gwfl" valiflag=" , ,岗位分类" v_require>
                    <option value="1">常用岗位</option>
                    <option value="2">全部岗位</option>
                  </select>
                </p>
              </div>
            </div>
            <div class="col clearfix J_allGw hide">
              <div class="row">
                <p class="text_l"><span style="color:red;">*</span>岗位名称：</p>
                <div class="text_r">
                  <input type="text" class="J_gwmc Isdisabled" paramete="gwmc" value="<%=_data.gwmc%>" v_require />
                  <ul class="PxzyList pxzy_list hide"></ul>
                </div>
              </div>
            </div>
            <div class="col clearfix J_Gw">
              <div class="row">
                <p class="text_l"><span style="color:red;">*</span>岗位名称：</p>
                <p class="text_r">
                  <select class="J_gwmcSel Cascade Isdisabled" valiflag=" , ,岗位名称" v_require></select>
                </p>
                <div class="row" style="margin-top:20px;">
                  <p class="text_l"></p>
                  <p class="text_r">
                    <select class="J_gwmc_child Cascade">
                      <option value="">请选择</option>
                    </select>
                  </p>
                </div>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l"><span style="color:red;">*</span>招聘人数（男）：</p>
                <p class="text_r">
                  <input class="Isdisabled" type="text" paramete="nars" valiflag="3,num,招聘人数（男）" value="<%=_data.nars==0?'': _data.nars%>" />
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l"><span style="color:red;">*</span>招聘人数（女）：</p>
                <p class="text_r">
                  <input class="Isdisabled" type="text" paramete="nvrs" valiflag="3,num,招聘人数（女）" value="<%=_data.nvrs==0?'': _data.nvrs%>" />
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l"><span style="color:red;">*</span>招聘人数（性别不限）：</p>
                <p class="text_r">
                  <input class="Isdisabled" type="text" paramete="xbbx" valiflag="3,num,招聘人数（性别不限）"
                    value="<%=_data.xbbx==0?'': _data.xbbx%>" />
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l"><span style="color:red;">*</span>发布开始时间：</p>
                <p class="text_r">
                  <input type="text" id="start_time_id" paramete="fbkssj" value="<%=_data.fbkssj%>" disabled />
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l"><span style="color:red;">*</span>发布结束时间：</p>
                <p class="text_r">
                  <input class="Isdisabled" type="text" id="end_time_id" paramete="fbjzsj" value="<%=_data.fbjzsj%>" v_require
                    onclick="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'start_time_id\',{d:+1})}',
                    maxDate:'#F{$dp.$D(\'start_time_id\',{d:+30})}'});">
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l"><span style="color:red;">*</span>用工形式：</p>
                <p class="text_r">
                  <select class="Isdisabled" id="ygxs" paramete="ygxs" valiflag=" , ,用工形式" v_require></select>
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l"><span style="color:red;">*</span>月薪范围：</p>
                <p class="text_r line_2 yxfw">
                  <input type="text" value="<%=_data.zdyx==0?'': _data.zdyx%>" paramete="zdyx" disabled>至<input class="Isdisabled"
                    type="text" value="<%=_data.zgyx==0?'': _data.zgyx%>" paramete="zgyx" disabled>
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l"><span style="color:red;">*</span>时薪范围：</p>
                <p class="text_r line_2 sxfw">
                  <input type="text" value="<%=_data.zdsx==0?'': _data.zdsx%>" paramete="zdsx" disabled>至<input
                    type="text" value="<%=_data.zgsx==0?'': _data.zgsx%>" paramete="zgsx" disabled>
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l"><span style="color:red;">*</span>工作地区：</p>
                <p class="text_r">
                  <select class="Isdisabled" id="gzdq" paramete="gzdq" valiflag=" , ,工作地区" v_require></select>
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l"><span style="color:red;">*</span>工作地点：</p>
                <p class="text_r">
                  <input class="Isdisabled" type="text" paramete="gzdd" valiflag="128,full,工作地点" value="<%=_data.gzdd%>" v_require />
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l"><span style="color:red;">*</span>是否招用残疾人：</p>
                <p class="text_r">
                  <select class="Isdisabled" id="sfzycjr" paramete="sfzycjr" valiflag=" , ,是否招用残疾人" v_require>
                    <option value="">请选择</option>
                    <option value="1">是</option>
                    <option value="0">否</option>
                  </select>
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l"><span style="color:red;">*</span>招聘联系人：</p>
                <p class="text_r">
                  <input class="Isdisabled" type="text" paramete="zplxr" valiflag="32,full,招聘联系人" v_require value="<%=_data.zplxr%>" />
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l"><span style="color:red;">*</span>招聘联系人手机：</p>
                <p class="text_r">
                  <input class="Isdisabled" type="text" paramete="zplxrsj" valiflag="11,sjh,招聘联系人手机" value="<%=_data.zplxrsj%>" />
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l"><span style="color:red;">*</span>招聘联系电话：</p>
                <p class="text_r">
                  <input class="Isdisabled" type="text" paramete="zplxdh" valiflag="32,lxdh,招聘联系电话" value="<%=_data.zplxdh%>" />
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">文化程度：</p>
                <p class="text_r">
                  <select class="Isdisabled" id="whcd" paramete="whcd" valiflag=" , ,文化程度"></select>
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">年龄要求（岁）：</p>
                <p class="text_r line_2">
                  <input class="Isdisabled" type="number" id="zxnl" value="<%=_data.zxnl%>">至<input type="number" id="zdnl"
                    value="<%=_data.zdnl%>">
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">健康状况：</p>
                <p class="text_r">
                  <select class="Isdisabled" id="jkzk" paramete="jkzk" valiflag=" , ,健康状况"></select>
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">户籍性质：</p>
                <p class="text_r">
                  <select class="Isdisabled" id="hjxz" paramete="hjxz" valiflag=" , ,户籍性质"></select>
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">人员类别：</p>
                <p class="text_r">
                  <select class="Isdisabled" id="rylb" paramete="rylb" valiflag=" , ,人员类别"></select>
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">招聘地区：</p>
                <p class="text_r">
                  <select class="Isdisabled" id="zpdq" paramete="zpdq" valiflag=" , ,招聘地区"></select>
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">是否招用应届生：</p>
                <p class="text_r">
                  <select class="Isdisabled" id="sfzyyjs" paramete="sfzyyjs" valiflag=" , ,是否招用应届生">
                    <option value="">请选择</option>
                    <option value="1">是</option>
                    <option value="0">否</option>
                  </select>
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">其他说明：</p>
                <div class="text_r area">
                  <textarea class="Isdisabled" type="text" paramete="qtsm" valiflag="255,normal,其他说明"><%=_data.qtsm%></textarea>
                </div>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">知识描述：</p>
                <div class="text_r area">
                  <textarea class="Isdisabled" type="text" paramete="zsms" valiflag="255,normal,知识描述"><%=_data.zsms%></textarea>
                </div>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">技能描述：</p>
                <div class="text_r area">
                  <textarea class="Isdisabled" type="text" paramete="jnms" valiflag="255,normal,技能描述"><%=_data.jnms%></textarea>
                </div>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">工作活动描述：</p>
                <div class="text_r area">
                  <textarea class="Isdisabled" type="text" paramete="gzhdms" valiflag="255,normal,工作活动描述"><%=_data.gzhdms%></textarea>
                </div>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">工作内容描述：</p>
                <div class="text_r area">
                  <textarea class="Isdisabled" id="gznrms" type="text" paramete="gznrms" valiflag="255,normal,工作内容描述"><%=_data.gznrms%></textarea>
                </div>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">计算机等级：</p>
                <p class="text_r">
                  <select class="Isdisabled" id="jsjdj" paramete="jsjdj" valiflag=" , ,计算机等级"></select>
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">计算机熟练程度：</p>
                <p class="text_r">
                  <select class="Isdisabled" id="jsjslcd" paramete="jsjslcd" valiflag=" , ,计算机熟练程度"></select>
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">职业技能：</p>
                <p class="text_r">
                  <select class="Isdisabled" id="zyjn" paramete="zyjn" valiflag=" , ,职业技能"></select>
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">职业技能技术等级：</p>
                <p class="text_r">
                  <select class="Isdisabled" id="zyjnjsdj" paramete="zyjnjsdj" valiflag=" , ,职业技能技术等级"></select>
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">职业技能从事年限：</p>
                <p class="text_r">
                  <input class="Isdisabled" type="text" paramete="zyjncsnx" valiflag="2,num,职业技能从事年限"
                    value="<%=_data.zyjncsnx==0?'': _data.zyjncsnx%>">
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">具有外语：</p>
                <p class="text_r">
                  <select class="Isdisabled" id="jywy" paramete="jywy" valiflag=" , ,具有外语"></select>
                </p>
              </div>
            </div>
            <div class="col clearfix">
              <div class="row">
                <p class="text_l">具有外语熟练程度：</p>
                <p class="text_r">
                  <select class="Isdisabled" id="jywyslcd" paramete="jywyslcd" valiflag=" , ,具有外语熟练程度"></select>
                </p>
              </div>
            </div>
          </form>

          <!-- <%}%> -->

          </script>
        </div>
        <div class="alertBtn">
          <button class="btn btn_blue_deep J_gwSub">确定</button>
          <button class="btn btn_blue_deep J_return">返回</button>
        </div>
      </div>
      <!-- 公用右侧企业信息模块 -->
      <div class="you right">
		<div class="top boxShadow">
				<div class="person girl">
						<p class="on mc"></p>
				</div>
				<p class="_div ellip">统一社会信用代码：<span class="xydmInfo "></span></p>
				<p class="_div J_rightSjdw ellip">所属一级企业：<span class="sjdwInfo "></span></p>
				<p class="_div ellip">是否国企：<span class="sfgqInfo "></span></p>
				<p class="_div ellip">联系人：<span class="lxrInfo"></span></p>
        <p class="_div ellip">联系电话：<span class="lxdhInfo "></span></p>
        <div class="tips">温馨提示：如贵公司为国有企业，请进入 “维护企业信息”模块对“所属一级企业”进行维护。</div>
        <div class="check_xg clearfix">
          <button class="btn btn_blue_border J_dont">维护企业信息</button>
        </div>
		</div>
		<div class="middle boxShadow">
				<h3 class="hide">暂无记录</h3>
				<div class="yyxx_box">
						<p class="zjxx">已招满岗位信息</p>
						<a class="Ck_btn" style="cursor: pointer">查看更多</a>
				</div>
		</div>
		<div class="newbox boxShadow">
				<div class="box_two">
						<p class="zxtel">咨询电话：12333</p>
				</div>
		</div>
</div>
    </div>
  </div>
  <!-- 公共尾部 -->
  <script src="http://rsj.beijing.gov.cn/footer.js"></script>

<script src="./common/vendor.js"></script>
<script src="./common/validator.js"></script>
<script src="./common/date/WdatePicker.js"></script>
<script src="./common/levelPlugin.js"></script>
<script src="./common/textchange.js"></script>
<script src="./common/common.js"></script>
<script>
  $(function () {
    var loading = new $.Loading();
    var id = $.paramObj().id;
    
    function fun() { 
      if(id==undefined){ 
        $(".Isdisabled").removeAttr("disabled");
      $(".J_gwSub").show();
      $(".J_return").hide();
          // 回显
       gwxxCx();
    }else{
      $(".Isdisabled").attr("disabled",true);
      
      $(".J_gwSub").hide();
      $(".J_return").show();
      gwxxCx(id);
    }
     }
     fun()

    $(document).on('click', '#ygxs', function () {
      if ($(this).val() == 40) {
        $('.sxfw').find('input').attr('disabled', false).attr('v_require', '');
        $('.yxfw').find('input').attr('disabled', true).removeAttr('v_require').val('');
      } else if ($(this).val() == '') {
        $('.yxfw').find('input').attr('disabled', true).removeAttr('v_require').val('');
        $('.sxfw').find('input').attr('disabled', true).removeAttr('v_require').val('');
      } else {
        $('.yxfw').find('input').attr('disabled', false).attr('v_require', '');
        $('.sxfw').find('input').attr('disabled', true).removeAttr('v_require').val('');
      }
    })
    //岗位分类 ，常用岗位 1 全部岗位 2
    $(document).on('change', '#gwfl', function () {
      if ($(this).val() == 1) {
        $('.J_allGw').hide().find('input').removeAttr('v_require');
        $('.J_Gw').show().find('select').val('');
      } else {
        $('.J_Gw').hide().find('select').removeAttr('v_require');
        $('.J_allGw').show().find('input').attr('v_require', '').val('');
      }
    })
    //点击select岗位名称
    $(document).on('change', '.J_gwmcSel', function () {
      var gw_id = $(this).val(); //获取代码id
      $.checkCodeGwList('/dmbgl/cygwCx', $('.J_gwmc_child'), ['tsgwxx', gw_id], '', true);
    })
    // 保存
    $(document).on('click', '.J_gwSub', function () {
      var _data = $('form[name="form_info"]').getFormData();
      if (validate('form_info')) {
        // 新增 1  修改 2
        id ? _data.ywcz = 2 : _data.ywcz = 1;
        _data.sffhyq = 1;
        if (_data.gwfl == 1) {
          _data.gwbm = $('.J_gwmc_child').val();
          _data.gwmc = $('.J_gwmc_child').find("option:selected").text();
        } else if (_data.gwfl == 2) {
          _data.gwbm = $('.J_gwmc').attr('gwbh');
        }
        if (_data.zplxrsj || _data.zplxdh) {
          if (_data.nars || _data.nvrs || _data.xbbx) {
            $.layerMsg('是否保存?', [{
              text: '是',
              cb: function () {
                $.fetch({
                  url: '/dwgl/zpxxBc',
                  type: 'post',
                  data: _data
                }).done(function (res) {
                  var _res = res.returnData;
                  if (+_res.executeResult == 1) {
                    $.layerMsg('操作成功', [{
                      text: '确定',
                      cb: function () {
                        window.location.href = './index.html';
                      }
                    }])
                  } else {
                    $.layerMsg(_res.message, '确定');
                  }
                })
              }
            }, {
              text: '否',
              cb: function () {}
            }])
          } else {
            $.layerMsg('请填写招聘人数（男）或招聘人数（女）或招聘人数（性别不限）！', '确定')
            return;
          }
        } else {
          $.layerMsg('请填写招聘联系电话或招聘联系人手机！', '确定')
          return;
        }
      }
    })
    $(document).on("click",".J_return",function(){
      window.location.href = "./index.html";
    })
    //  查询基本信息
    function gwxxCx() {
      loading.on();
      return $.asyncRender({
        url: '/dwgl/zpxxCx',
        get: 'get',
        data: {
          zpgwid: id
        },
        pos: 'returnData',
        tem: '#detailTem',
        wrap: '#detailWrap'
      }).done(function (result) {
        loading.off();
        var data = result.returnData;
        if (data.executeResult === '1') {
          loadValid();
          var _data = data.zpxx[0];
          $.renderCode('/dmbgl/dmblbCx', $('#ygxs'), 'zyjs_d_dwygxs', 'zyjs_d_dwygxs', _data.ygxs); //用工形式
          $.renderCode('/dmbgl/dmblbCx', $('#gzdq'), 'zyjs_d_gzdq', 'zyjs_d_gzdq', _data.gzdq); //工作地区
          $.renderCode('/dmbgl/dmblbCx', $('#zpdq'), 'zyjs_d_gzdq', 'zyjs_d_gzdq', _data.zpdq); //招聘地区
          $.renderCode('/dmbgl/dmblbCx', $('#rylb'), 'zyjs_d_rylb', 'zyjs_d_rylb', _data.rylb); //人员类别
          $.renderCode('/dmbgl/dmblbCx', $('#hjxz'), 'cdl_rprtype', 'cdl_rprtype', _data.hjxz); //户籍性质
          $.renderCode('/dmbgl/dmblbCx', $('#whcd'), 'zyjsww_d_whcd', 'zyjsww_d_whcd'); //文化程度
          $.renderCode('/dmbgl/dmblbCx', $('#jkzk'), 'cdg_healthstate', 'cdg_healthstate'); //健康状况
          $.renderCode('/dmbgl/dmblbCx', $('#jsjdj'), 'zyjs_d_yyjn_jsj', 'zyjs_d_yyjn_jsj'); //计算机等级
          $.renderCode('/dmbgl/dmblbCx', $('#jsjslcd'), 'zyjs_d_yyjn_slcd', 'zyjs_d_yyjn_slcd'); //计算机熟练程度
          $.renderCode('/dmbgl/dmblbCx', $('#zyjn'), 'zyjs_d_yyjn_zy', 'zyjs_d_yyjn_zy'); //职业技能
          $.renderCode('/dmbgl/dmblbCx', $('#zyjnjsdj'), 'zyjs_d_yyjn_jsdj', 'zyjs_d_yyjn_jsdj'); //职业技能技术等级
          $.renderCode('/dmbgl/dmblbCx', $('#jywy'), 'zyjs_d_yyjn_wy', 'zyjs_d_yyjn_wy'); //具有外语
          $.renderCode('/dmbgl/dmblbCx', $('#jywyslcd'), 'zyjs_d_yyjn_slcd', 'zyjs_d_yyjn_slcd'); //具有外语熟练程度
          $.checkCodeGwList('/dmbgl/cygwCx', $('.J_gwmcSel'), 'tsgwxx'); //岗位名称 select
          if (_data.ygxs == 40) { //小时工
            $('.sxfw').find('input').attr('disabled', false).attr('v_require', '');
            $('.yxfw').find('input').attr('disabled', true).removeAttr('v_require').val('');
          } else if (_data.ygxs == '' || !_data.ygxs) {
            $('.yxfw').find('input').attr('disabled', true).removeAttr('v_require').val('');
            $('.sxfw').find('input').attr('disabled', true).removeAttr('v_require').val('');
          } else {
            $('.yxfw').find('input').attr('disabled', false).attr('v_require', '');
            $('.sxfw').find('input').attr('disabled', true).removeAttr('v_require').val('');
          }
        }
      });
    }
    // 模糊查询
    $("body").on('textchange', '.J_gwmc', function () {
      var pxzyList = $(this).siblings('.PxzyList');
      $(this).parents('.J_pxjc').find('.J_zydm').val('');
      pxgzCx(pxzyList, $(this).val());
    })
    $('body').on('click', '.PxzyList li', function () {
      var pxzyInput = $(this).parents('ul').siblings('.J_gwmc');
      pxzyInput.val($(this).text()).attr('gwbh', $(this).attr('gwbh'));
      $(this).parent('ul').hide();
    })
    // 模糊查询 dom:对应的dom元素，val；需要选中的值
    function pxgzCx(dom, val) {
      $.fetch({
        url: '/dmbgl/tsgwCx',
        type: 'get',
        data: {
          gwmc: val
        }
      }).done(function (result) {
        var gwxx = result.returnData.tsgwxx;
        if (+result.returnData.executeResult === 1) {
          var str = '';
          var pydj = [];
          for (var i = 0; i < gwxx.length; i++) {
            str += '<li gwbh="' + gwxx[i].gwbh + '">' +
              gwxx[i].gwmc + '</li>'
          }
          dom.show();
          dom.html(str);
        }
      })
    }
    //隐藏模糊查询边框
    $(document).on('click', function () {
      $('.PxzyList').hide()
    })
  });

</script>


</body></html>